-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Content Exclusion for Copilot Hover #13143
base: main
Are you sure you want to change the base?
Conversation
…nto dev/spebl/content_ex
…nto dev/spebl/content_ex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the feature be enabled now? I thought this was the only blocking issue?
We're still waiting for final sign-off before rolling it out. @benmcmorran has been tracking the privacy approval which is the last step. |
@sean-mcmanus Not sure exactly when you were planning to do the 1.23 official release, but assuming we get the approval from the VS Code team to use the proposed API soon, is it feasible to ensure this PR makes it into the release? That will put us in a position to enable for the GA audience once all sign-offs are complete. |
Discussed offline with @Colengms and it sounds like that timeline may not be feasible. It's fine to hold this for the next insiders release instead. |
These changes, about to push an update. |
} | ||
} catch (err) { | ||
if (err instanceof Error) { | ||
await reportCopilotFailure(copilotHoverProvider, hoverDocument, hoverPosition, err.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this err.message contain PII, such as the user name and paths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call that logging any generic error could have that issue. Perhaps something like "Copilot Hover Error: " + err.name? Should be safe from PII but it would be good to be able to track what type of errors are hit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I used err.name in my PR at #13158 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure how to determine if vscode.LanguageModelError should be handled (which has code
) versus Error (which only has name
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The telemetry already is sent via telemetry.logLanguageServerEvent("CopilotHoverError", { "ErrorMessage":
so adding "Copilot Hover Error: "
doesn't seem to add any info.
Get the files used for the context generation and bail before calling the LM if they're excluded.